<template>
  <el-dialog
    title="提示"
    :visible.sync="diashow"
    width="30%">
    <span>确定删除?</span>
    <span slot="footer" class="dialog-footer">
      <el-button @click="btnClick(0)" >取 消</el-button>
      <el-button type="primary" @click="btnClick(1)" >确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
  export default {
    name:'deltoast',
    props:['diashow'],
      data() {
        return {
         
        };
      },
      methods: {
       btnClick(option){
         this.$emit('btnClick',option)
       },
      },
   }   
</script>

<style style="scss" scoped >
</style>